<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>06 异常</title>
	</head>
	<body>
		<script type="text/javascript">
			// RHS
			/* function fn(a){
				a = b;//b is not defined
			}
			fn(2); */
			/* function fn2(){
				var b = 0;
				b();//b is not a function
			}
			fn2(); */
			function fn(){
				'use strict';
				a = 1;
			}
			fn();
			console.log(window);
			console.log(a);
			
			
		</script>
		
		
	</body>
</html>
